package com.zhihuishu.micro.course.service.impl;

import com.zhihuishu.micro.course.dto.CourseFolderDto;
import com.zhihuishu.micro.course.dto.CourseFolderRootAndDirDto;
import com.zhihuishu.micro.course.service.CCFolderTreenityRedisService;
import com.zhihuishu.toolkit.jedis.JedisHelper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * table-CC_FOLDER
 * dto-CourseFolder
 * @author Jiangli
 * @date 2016/12/16 13:15
 */
@Service("ccFolderTreenityServiceRedis")
public class CCFolderTreenityRedisServiceImpl extends BaseTreenityBatchServiceRedisImpl<CourseFolderDto> implements CCFolderTreenityRedisService {
    @Override
    protected Class<CourseFolderDto> getDTOClass() {
        return CourseFolderDto.class;
    }

    @Override
    public CourseFolderDto refreshUniqueName(CourseFolderDto dto, long updateUserId) {
        //无需继承
        return null;
    }

    @Override
    public String getObjectKey(Integer dtoId) {
        return JedisHelper.key("cc:folder", dtoId);
    }

    @Override
    public CourseFolderRootAndDirDto findRootAndDir(Long courseId, String folderName) {
        return null;
    }

    @Override
    public String getIdsKey(long courseId) {
            return JedisHelper.key("cc:course", courseId, "folder");
    }

    @Override
    public List<Integer> findDirectChildren(List<Integer> folderIds) {
        return null;
    }

    @Override
    public List<Integer> findAllChildren(List<Integer> folderIds) {
        return null;
    }

    @Override
    public CourseFolderDto updateAndGet(CourseFolderDto dto, long updateUserId) {
        //无需继承
        return null;
    }
}
